-
Notifications
You must be signed in to change notification settings - Fork 1.2k
feat: Provide access to bundled libraries when in browser #1297
feat: Provide access to bundled libraries when in browser #1297
Conversation
cfded22
to
d884f05
Compare
d884f05
to
7861794
Compare
Just wondering why these types are properties of an instance and not of the constructor/separate export? |
hmm, I'm still not sure I understand the reasoning. The Needless to say, if someone wanted to do something with CID before creating their IPFS node then they can't. |
I agree that it seems odd @alanshaw . However, if the Anyway, I agree that it is a strange behavior and it should be improved. What do you suggest to support this, maintaining the coherency across repos? |
Let's get a decision on this asap to get both interfaces consistent. I'm fine with having these as static references (meaning, available through class and instance) |
…-bundled-libraries-when-in-browser
Did something stall this, I agree with @alanshaw that having this on static is significantly more useful, as we have code that doesn't easily have access to the ipfs node that makes this check by reimporting the "cids" |
In this PR, the bundled libraries mentioned in 406, as well as ipfs/js-ipfs#525 (comment) were added the same way as in
js-ipfs-api
.For this issue, other 2 PRs were created